<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->

<head>
  <meta charset="utf-8" />
  <title>安庆调度</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta content="width=device-width, initial-scale=1.0" name="viewport" />
  <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  <meta content="" name="description" />
  <meta content="" name="author" />
  <!-- BEGIN GLOBAL MANDATORY STYLES -->
  <link href=" ../../Global/Plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
  <link href="../../Global/Plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
  <link href="../../Global/Plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
  <!-- BEGIN THEME STYLES -->
  <link href='../../Application/Global/Css/themes/darkblue.css' rel='stylesheet' type='text/css' id='themes_color' />
  <!-- END THEME STYLES -->
  <!-- END GLOBAL MANDATORY STYLES -->
  <!-- <link rel="shortcut icon" href="../../application/global/favicon.ico" /> </head> -->
<!-- END HEAD -->
<!-- BEGIN BODY -->
<!-- DOC: Apply "page-header-fixed-mobile" and "page-footer-fixed-mobile" class to body element to force fixed header or footer in mobile devices -->
<!-- DOC: Apply "page-sidebar-closed" class to the body and "page-sidebar-menu-closed" class to the sidebar menu element to hide the sidebar by default -->
<!-- DOC: Apply "page-sidebar-hide" class to the body to make the sidebar completely hidden on toggle -->
<!-- DOC: Apply "page-sidebar-closed-hide-logo" class to the body element to make the logo hidden on sidebar toggle -->
<!-- DOC: Apply "page-sidebar-hide" class to body element to completely hide the sidebar on sidebar toggle -->
<!-- DOC: Apply "page-sidebar-fixed" class to have fixed sidebar -->
<!-- DOC: Apply "page-footer-fixed" class to the body element to have fixed footer -->
<!-- DOC: Apply "page-sidebar-reversed" class to put the sidebar on the right side -->
<!-- DOC: Apply "page-full-width" class to the body element to have full width page without the sidebar menu -->

<body class="page-md">
  <!-- BEGIN CONTAINER -->
  <div class="page-container no-margin">
    <!-- BEGIN CONTENT -->
    <div class="page-content">
      <!-- BEGIN PAGE CONTENT-->
      <div class="row">
        <div class="col-md-2">
          <div class="portlet box default-color" data-model="tankArea">
            <div class="portlet-title">
              <div class="caption"> <i class="fa fa-gift"></i> 罐区列表 </div>
              <div class="tools"> <a href="javascript:;" class="collapse"></a> <a href="javascript:;" class="reload" data-bind="click:search"></a> <a href="javascript:;" class="fullscreen"></a> </div>
            </div>
            <div class="portlet-body">
              <div class="table-toolbar"> </div>
              <!--Page树Start-->
              <div class="scroller" style="height: 600px;" data-height="600px;">
                <div class="tree">
                  <ol class="tree-list" data-bind="template:{name:'pageTreeViewTemplate',foreach:recordSet}"></ol>
                </div>
              </div>
              <script type="text/x-jquery-tmpl" id="pageTreeViewTemplate">
                <li class="tree-item" data-bind="event:{click:$root.nodeClick}">
                  <div class="tree-handle"> <i class="fa" data-original-title="收起" data-bind="click:$root.folding"></i> <span data-bind="text:$data.tankAreaAlias"></span> </div>
                </li>
              </script>
              <!--Page树End-->
            </div>
          </div>
        </div>
        <div class="col-md-4">
          <div class="portlet box default-color" data-model="tankList">
            <div class="portlet-title">
              <div class="caption"> <i class="fa fa-gift"></i> 罐列表 </div>
              <div class="tools"> <a href="javascript:;" class="collapse" 　data-bind="preventBubble: 'click'"></a> <a href="javascript:;" class="reload" data-bind="click:search"></a> <a href="javascript:;" class="fullscreen"></a> </div>
            </div>
            <div class="portlet-body">
              <div class="table-toolbar">
                <div class="row">
                  <div class="col-md-12">
                    <div style="float:left;"> <label class="label label-danger">所属罐区：<font data-bind="text:tankAreaName"></font></label> </div>
                    <div class="btn-group float-right">
                       <!-- <a href="javascript:;" class="btn red" data-bind="click:deleteService">
                                                                        删除
                                                                    </a> -->
                                                                  </div>
                  </div>
                </div>
              </div>
              <!--Page树Start-->
              <div class="scroller" style="height: 600px;" data-height="600px;">
                <table class="table table-striped table-bordered table-hover table-cur ">
                  <thead>
                    <!--表头操作部分Start-->
                    <tr>
                      <!-- ko foreach: headers -->

                      <th data-bind="attr:{ width: width }"> <a href="javascript:;" data-bind="text: text"></a>
                        <!-- <i data-bind="visible: field == $root.orderField() && $root.isAsc()" class="fa fa-chevron-up float-right"></i>  -->
                        <!-- <i data-bind="visible: field == $root.orderField() && !$root.isAsc()"  class="fa fa-chevron-down float-right"></i>  --></th>
                      <!-- /ko -->
                    </tr>
                    <!--表头操作部分End-->
                  </thead>
                  <tbody>
                    <!-- ko foreach: recordSet -->
                    <tr class="odd gradeX" data-bind="click:$root.rowclick">
                      <td data-bind="text:tankName"></td>
                      <td data-bind="text:tankTypeName"></td>
                      <td data-bind="text:tankCode"></td>
                      <td data-bind="text:tankAreaAlias"></td>
                    </tr>
                    <!-- /ko -->
                  </tbody>
                </table>
              </div>
              <!--Page树End-->
            </div>
          </div>
        </div>
        <div class="col-md-6">
          <div class="portlet box default-color" data-model="pageinfo">
            <div class="portlet-title">
              <div class="caption"> <i class="fa fa-gift"></i> 罐信息 </div>
              <div class="tools"> <a href="javascript:;" class="collapse"></a> <a href="javascript:;" class="reload" data-bind="click:reset"></a> <a href="javascript:;" class="fullscreen"></a> </div>
            </div>
            <div class="portlet-body">
              <div class="table-toolbar">
                <div class="row">
                  <div class="col-md-12">
                    <div class="btn-group float-right">

                      <!--ko if:tankId()!=''--><a href="javascript:;" class="btn blue-dark" data-bind="click:update">
                                                保存
                                            </a> <a href="javascript:;" class="btn black" data-bind="click:$root.delete">
                                                删除
                                            </a>
                      <!--/ko--><a href="javascript:;" class="btn black" data-bind="click:$root.reset">
                                                取消
                                            </a> </div>
                  </div>
                </div>
              </div>
              <div class="form-horizontal" style="height: 600px;">
                <div class="form-body">
                  <div class="form-group"> <label class="col-md-4 control-label req">罐名称</label>
                    <div class="col-md-8">
                      <div class="input-group"> <input type="text" class="form-control" data-bind="value:tankName" data-rule="required"> </div>
                    </div>
                  </div>
                  <div class="form-group"> <label class="col-md-4 control-label req">罐简称</label>
                    <div class="col-md-8">
                      <div class="input-group"> <input type="text" class="form-control" data-bind="value:tankAlias" data-rule="required"> </div>
                    </div>
                  </div>
                  <div class="form-group"> <label class="col-md-4 control-label req">罐编码</label>
                    <div class="col-md-8">
                      <div class="input-group"> <input type="text" class="form-control" data-rule="required" data-bind="value:tankCode,attr:{disabled:tankId()!=''}"> </div>
                    </div>
                  </div>
                  <div class="form-group"> <label class="col-md-4 control-label req">罐类型</label>
                    <div class="col-md-8">
                      <div class="input-group"> <select class="form-control" data-bind="value:tankType,options:$root.tankTypeList,optionsText:'name',optionsValue:'value'">

                                                </select> </div>
                    </div>
                  </div>
                  <div class="form-group"> <label class="col-md-4 control-label req">罐区</label>
                    <div class="col-md-8">
                      <div class="input-group">

                        <select class="form-control" data-bind="value:tankAreaId,options:$root.tabkAreaList,optionsText:'tankAreaName',optionsValue:'tankAreaId'"></select>
                       </div>
                    </div>
                  </div>
                  <div class="form-group"> <label class="col-md-4 control-label  ">料仓标识</label>
                    <div class="col-md-8">
                      <div class="input-group"> <select class="form-control" data-bind="value:stkhsFlag,attr:{disabled:tankId()!=''}">
                         <option  value="1">
                            是
                         </option>   <option  value="2">
                               否
                            </option>
                       </select> </div>
                    </div>
                  </div>

                  <div class="form-group"> <label class="col-md-4 control-label ">浮盘重</label>
                    <div class="col-md-8">
                      <div class="input-group"> <input type="number" class="form-control" data-bind="value:fltPlatWgt,attr:{disabled:tankId()!=''}"> </div>
                    </div>
                  </div>
                  <div class="form-group"> <label class="col-md-4 control-label  ">罐高</label>
                    <div class="col-md-8">
                      <div class="input-group"> <input type="number" class="form-control" data-bind="value:tankHgt,attr:{disabled:tankId()!=''}" data-rule="required" /> </div>
                    </div>
                  </div>
                  <div class="form-group"> <label class="col-md-4 control-label ">是否保温罐</label>
                    <div class="col-md-8">
                      <div class="input-group"> <select data-bind="value:htPretTank,attr:{disabled:tankId()!=''}" class="form-control">
                                    <option value="1">
                                       是
                                    </option>
                                        <option value="0">
                                        否
                                        </option>

                      </select> </div>
                    </div>
                  </div>
                  <!-- <div class="form-group"> <label class="col-md-4 control-label ">浮盘前高</label>
                    <div class="col-md-8">
                      <div class="input-group"> <input class="form-control" data-bind="value:fltPlatPerhgt,attr:{disabled:tankId()!=''}" type="number" /> </div>
                    </div> -->
                  </div>
                  <div class="form-group"> <label class="col-md-4 control-label ">罐公称容积</label>
                    <div class="col-md-8">
                      <div class="input-group"> <input class="form-control" data-bind="value:tankTotlCuba,attr:{disabled:tankId()!=''}" /> </div>
                    </div>
                  </div>
                  <div class="form-group"> <label class="col-md-4 control-label ">浮顶最低点</label>
                    <div class="col-md-8">
                      <div class="input-group"> <input class="form-control" data-bind="value:fltTipLst,attr:{disabled:tankId()!=''}" /> </div>
                    </div>
                  </div>
                  <div class="form-group"> <label class="col-md-4 control-label ">罐安全高度</label>
                    <div class="col-md-8">
                      <div class="input-group"> <input class="form-control" data-bind="value:maxTankHgt" /> </div>
                    </div>
                  </div>
                  <div class="form-group"> <label class="col-md-4 control-label "> 罐底高度</label>
                    <div class="col-md-8">
                      <div class="input-group"> <input class="form-control" data-bind="value:minTankHgt" /> </div>
                    </div>
                  </div>
                  <div class="form-group"> <label class="col-md-4 control-label ">最小安全罐高</label>
                    <div class="col-md-8">
                      <div class="input-group"> <input class="form-control" data-bind="value:minSafeTankhigh" /> </div>
                    </div>
                  </div>
                  <div class="form-group"> <label class="col-md-4 control-label ">安全库存上限</label>
                    <div class="col-md-8">
                      <div class="input-group"> <input class="form-control" data-bind="value:safeTanksaveUpper" /> </div>
                    </div>
                  </div>
                  <div class="form-group"> <label class="col-md-4 control-label ">安全库存下限</label>
                    <div class="col-md-8">
                      <div class="input-group"> <input class="form-control" data-bind="value:safeTanksaveLower" /> </div>
                    </div>
                  </div>
                  <div class="form-group"> <label class="col-md-4 control-label ">温度位号</label>
                    <div class="col-md-8">
                      <div class="input-group"> <input class="form-control" data-bind="value:temperatureTagcode" /> </div>
                    </div>
                  </div>
                  <div class="form-group"> <label class="col-md-4 control-label ">压力位号</label>
                    <div class="col-md-8">
                      <div class="input-group"> <input class="form-control" data-bind="value:pressureTagcode" /> </div>
                    </div>
                  </div> 
                  <div class="form-group"> <label class="col-md-4 control-label ">液位位号</label>
                    <div class="col-md-8">
                      <div class="input-group"> <input class="form-control" data-bind="value:levelTagcode" /> </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <!-- END PAGE CONTENT-->
    </div>
    <!-- END CONTENT -->
  </div>
  <!-- END CONTAINER -->
  <!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
  <!-- BEGIN CORE PLUGINS -->
  <!--[if lt IE 9]>
    <script src="../../Global/Plugins/excanvas.min.js"></script>
    <script src="../../Global/Plugins/respond.min.js"></script>
    <![endif]-->
  <script src="../../Global/Scripts/require.js"></script>
  <script src="../../Global/Scripts/akcy.config.js"></script>
  <script src="Scripts/tank.js"></script>
</body>
<!-- END BODY -->

</html>
